<!DOCTYPE html>
<html>
<body>
	<!-- 如果信息带参数的要用这个，比如：删除了{0}条记录 ，这里应该会有更好的写法
		MessageHelper.addSuccessAttribute(ra, "del.success", new Object[] {recordCount}); 
	-->
    <div th:fragment="alert" class="alert alert-dismissable" th:classappend="'alert-' + ${#strings.toLowerCase(message.type)}">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        <th:block th:if="${(message != null) and (message.args==null or message.args.length ==0 )}">	
        	<span th:text="#{${message.message}}">Test</span>
        </th:block>
        <th:block th:if="${(message != null) and (message.args!=null) and (message.args.length >=1 )}">	        
        	<span th:text="#{${message.message}(${message.args[0]})}">Test</span>
        </th:block>        
    </div>
    
    <!--  <div th:replace="fragments/alert :: alert_info (type='danger', message=${errorMessage})">Error: Error</div>  -->    
     <div th:fragment="alert_info (type, message)" class="alert alert-dismissable" th:classappend="'alert-' + ${type}">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        <span th:text="${message}">Test</span>
    </div>
    
</body>
</html>

